@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <div class="form-horizontal" id="sgpbCheckForm">
                    <input type="hidden" id="FscbtValue" value="${item.Fscbt}">
                    <input type="hidden" id="FphbnoValue" value="${item.Fphbno}">
                    <input type="hidden" id="FsgpbValue" value="${item.Fsgpb}">
                    <input type="hidden" id="FrwdhValue" value="${item.Frwdh}">
                    <input type="hidden" id="newFsgpbValue">
                    <input type="hidden" id="newFphbnoValue">
                    <div class="row">
                        <div class="col-lg-4 col-sm-4">
                            <#input id="Frwdh" value="${item.Frwdh}" name="任务单号"/>
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <#input id="Ftpz" name="砼品种" value="${item.Ftpz}" readonly="readonly"/>
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <#input id="Ftld" name="塌落度" value="${item.Ftld}" readonly="readonly"/>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-4 col-sm-4">
                            <#input id="Fphbno" name="配合比号" value="${item.Fphbno}" readonly="readonly" />
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <#input id="Fjzfs" name="泵送方式" value="${item.Fjzfs}" readonly="readonly" />
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <#input id="Fszgg" name="石子规格" value="${item.Fszgg}" readonly="readonly" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-4 col-sm-4">
                            <#select id="Fscbt" name="生产拌台" >
                                <option value="*">所有拌台</option>
                                <option value="1">1#线</option>
                                <option value="2">2#线</option>
                                <option value="3">3#线</option>
                                <option value="5">5#线</option>
                                <option value="6">6#线</option>
                            </#select>
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <#input id="Fgcmc" name="工程名称" value="${item.Fgcmc}" readonly="readonly" />
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <#input id="Fjzbw" name="施工部位" value="${item.Fjzbw}" readonly="readonly" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-6 col-sm-4">
                            <span style="font-weight: bold;font-size: 15px;margin:0 23px 0 14px;">
                                全部&nbsp;&nbsp;<input type="checkbox" id="qb" title="未选择全部，则只查询每个单最后一次调整记录"/>
                            </span>
                            <#button name="最近任务单" icon="fa-search" clickFun="TrwdSgpbDlg.search()"/>&nbsp;&nbsp;
                        </div>
                    </div>
                    <div class="row" style="display: none;" id="otherRow">
                        <div class="col-lg-4 col-sm-4">
                            <fieldset>
                                <legend>调整记录</legend>
                                <div style="margin-top: 36px">
                                    <#table id="recentRwdTable"/>
                                </div>
                            </fieldset>
                        </div>
                        <div class="col-lg-4 col-sm-4">
                            <fieldset>
                                <legend>施工配比</legend>
                                <div class="input-group">
                                    <span class="input-group-addon">基准容重</span>
                                    <input class="form-control" id="jzrz" style="width: 100px; color: red;" readonly/>
                                    <span class="input-group-addon">基准胶材</span>
                                    <input class="form-control" id="jzjc" style="width: 100px; color: red;" readonly/>
                                </div>
                                <#table id="sjpbxxTable"/>
                            </fieldset>
                        </div>
                        <div class="col-lg-4 col-sm-4" class="data_calc">
                            <fieldset>
                                <legend>数据计算</legend>
                            </fieldset>
                            <div class="input-group" style="margin: 55px 0 8px 0;">
                                <span class="input-group-addon">分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;线</span>
                                <input type="text" id="fx" class="form-control" style="color: red;" value="${item.Fscbt}" readonly/>
                                <span class="input-group-addon">选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;线</span>
                                <select id="scbtCurrent" class ="form-control" style="width: 161px">
                                    <option value="0">施工配比</option>
                                    <option value="1">1#线</option>
                                    <option value="2">2#线</option>
                                    <option value="3">3#线</option>
                                    <option value="5">5#线</option>
                                    <option value="6">6#线</option>
                                </select>
                            </div>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                <span class="input-group-addon">现在砂率</span>
                                <input type="text" id="newSl" class="form-control" readonly/>
                                <span class="input-group-addon">原有砂率</span>
                                <input type="text" id="oldSl" class="form-control" readonly/>
                            </div>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                <button type="button" class="btn btn-primary sl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustSl(1)" disabled>+1</button>
                                <button type="button" class="btn btn-primary sl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustSl(2)" disabled>+2</button>
                                <button type="button" class="btn btn-default sl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustSl(-1)" disabled>-1</button>
                                <button type="button" class="btn btn-default sl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustSl(-2)" disabled>-2</button>
                            </div>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                <span class="input-group-addon">现在掺量</span>
                                <input type="text" id="newCl" class="form-control" readonly/>
                                <span class="input-group-addon">原有掺量</span>
                                <input type="text" id="oldCl"  class="form-control" readonly/>
                            </div>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                <button type="button" class="btn btn-primary cl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustCl('5')" disabled>+0.05</button>
                                <button type="button" class="btn btn-primary cl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustCl('10')" disabled>+0.1</button>
                                <button type="button" class="btn btn-primary cl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustCl('20')" disabled>+0.2</button>
                                <button type="button" class="btn btn-default cl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustCl('x5')" disabled>-0.05</button>
                                <button type="button" class="btn btn-default cl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustCl('x10')" disabled>-0.1</button>
                                <button type="button" class="btn btn-default cl" style="margin-right: 10px;" onclick="TrwdSgpbDlg.adjustCl('x20')" disabled>-0.2</button>
                            </div>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                <span class="input-group-addon">现在胶料</span>
                                <input type="text" id="newJc" class="form-control" readonly/>
                                <span class="input-group-addon">原来胶料</span>
                                <input type="text" id="oldJc"  class="form-control" readonly/>
                                <span id="jcDifference" class="badge pull-right"
                                      style="position: absolute; z-index: 100; top: 17px; right: 0px;
                                      color: red; background-color: aquamarine; display: none;">0</span>
                            </div>
                            <div class="input-group" style="margin: 5px 0 5px 0;">
                                <span class="input-group-addon">现在容重</span>
                                <input type="text" id="newRz" class="form-control" readonly/>
                                <span class="input-group-addon">原有容重</span>
                                <input type="text" id="oldRz"  class="form-control" readonly/>
                                <span id="rzDifference" class="badge pull-right"
                                      style="position: absolute; z-index: 100; top: 17px; right: 0px;
                                      color: red; background-color: aquamarine; display: none;">0</span>
                            </div>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                <span class="input-group-addon">原&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;料</span>
                                <input type="text" id="ylmc" class="form-control" readonly/>
                                <span class="input-group-addon">品&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;种</span>
                                <select id="Fpz" class ="form-control" style="width: 161px" disabled>
                                </select>
                            </div>
                            <input type="hidden" id="pz" class="form-control" readonly/>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                <span class="input-group-addon">施工配比</span>
                                <input type="text" id="sgpb" class="form-control" value="${item.Fsgpb}" readonly/>
                                <span class="input-group-addon">用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量</span>
                                <input type="number" id="sysl" step="1" class="form-control" disabled/>
                                <span id="addSandStone" class="badge pull-right" title="加砂石"
                                      style="position: absolute; z-index: 100; top: -4px; right: -21px; cursor: pointer;
                                      color: red; background-color: aquamarine; display: none; padding: 0;">
                                    <i class="layui-icon layui-icon-addition" style="font-size: 20px; color: #1E9FFF;"></i>
                                </span>
                                <span id="minusSandStone" class="badge pull-right" title="减砂石"
                                      style="position: absolute; z-index: 100; top: 17px; right: -21px; cursor: pointer;
                                      color: red; background-color: aquamarine; display: none; padding: 0;">
                                    <i class="layui-icon layui-icon-subtraction" style="font-size: 20px; color: #ff480b;"></i>
                                </span>
                                <input type="hidden" id="fid"/>
                                <input type="hidden" id="ysysl"/>
                            </div>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                <input type="text" class="form-control" readonly style="width: 242px"/>
                                <span class="input-group-addon" style="width: 21%">容重比例</span>
                                <input type="number" id="frzbl" class="form-control" max="1.05" min="0.99" step="0.01" style="color: red; width: 161px" value="1" disabled/>
                            </div>
                            <div class="input-group" style="margin: 8px 0 8px 0;">
                                @if(shiro.hasPermission("/trwd/tzpb")){
                                <select id="phbno" class ="form-control" style="width: 122px; margin-right: 5px;">
                                </select>
                                <button type="button" id="useSgpbRecipeBtn" onclick="TrwdSgpbDlg.getSgPbRecipe()" class="btn btn-primary"
                                         style="margin-right: 5px; " title="变换施工配比"><i class="layui-icon layui-icon-fire"></i></button>
                                <select id="templateInfo" class ="form-control" style="width: 70px; margin-right: 5px; display: none;">
                                </select>
                                <button type="button" id="useTemplateInfoBtn" onclick="TrwdSgpbDlg.useTemplateInfo()" class="btn btn-primary"
                                        style="margin-right: 5px; display: none;" title="使用模板材料"><i class="layui-icon layui-icon-at"></i></button>
                                <button type="button" id="resetRecipeBtn" onclick="TrwdSgpbDlg.resetRecipe()" class="btn btn-default"
                                        style="margin-right: 5px; display: none;" title="撤销配比修改">撤销</button>
                                <button type="button" id="clearRecipeBtn" onclick="TrwdSgpbDlg.clearRecipe()" class="btn btn-default"
                                        style="margin-right: 5px; display: none;"  title="清空施工配比列表">清空</button>
                                <button type="button" id="saveRecipeBtn" onclick="TrwdSgpbDlg.saveRecipe()" class="btn btn-primary"
                                        style="margin-right: 5px;">保存配比</button>
                                <button type="button" id="adjustRecipeBtn" onclick="TrwdSgpbDlg.startAdjustRecipe()" class="btn btn-primary"
                                        style="margin-right: 5px;">调整配比</button>
                                @}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/business/trwd/trwd.js"></script>
<script src="${ctxPath}/static/modular/business/trwd/trwd_sgpb.js"></script>
@}
